package com.loyal.loyalerp.service;

import java.util.List;

import com.loyal.loyalerp.model.GyRolePermission;
import com.loyal.loyalerp.model.vo.ListRoleVO;

public interface RolePermissionService {
	//【1】查询显示所有的用户role
	public List<Object> queryByRoles() throws Exception;
	
	public List<GyRolePermission> getRoleIdToQuery(Integer roleid) throws Exception;
	
	public List<GyRolePermission> getpermissionIdToQuery(Integer permissionid) throws Exception;

	public void editRoleToPermission(Integer roleid,Integer[] chks) throws Exception;
	
	public void editPermissionToRole(Integer roleid, Integer[] chks) throws Exception;
	
	public ListRoleVO listUser();
	
	public String roleToUser(Integer uid,Integer[] roleids);
}
